Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tokens): support style-dictionary build in windows env #2500

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

castastrophe
Copy link
Collaborator

@castastrophe castastrophe commented Feb 7, 2024

Description

When adding an experimental windows-latest run, I found that the style-dictionary compilation was failing pretty terrifically. This PR aims to fix that by wrapping pathing in path.join so that it can be rendered in a windows-friendly format.

Update the .gitattributes to force windows to use lf instead of crlf so that the generated mods files don't show a diff after the build.

Switch the style-dictionary build to use the vanilla command instead of the nx executor.

How and where has this been tested?

Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.

Validation steps

This can be validated via CI which will try to run the tokens build in windows. If the task fails, this PR did not work.

To-do list

@castastrophe castastrophe added the skip_vrt Add to a PR to skip running VRT (but still pass the action) label Feb 7, 2024
Copy link
Contributor

github-actions bot commented Feb 7, 2024

File metrics

Summary

Total size: 3.27 MB*
Total change (Δ): 🔴 ⬆ 46.18 KB (1.40%)

Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.

Package Size Δ
tokens 202.00 KB 🔴 ⬆ 0.04 KB

Details

tokens

Filename Head Compared to base
css/dark-vars.css 48.04 KB -
css/global-vars.css 44.24 KB 🔴 ⬆ 0.04 KB (0.10%)
css/index.css 202.00 KB 🔴 ⬆ 0.04 KB (0.02%)
css/large-vars.css 32.08 KB -
css/light-vars.css 48.00 KB -
css/medium-vars.css 32.24 KB -
json/tokens.json 336.03 KB 🔴 ⬆ 46.09 KB (15.90%)
* Size determined by adding together the size of the main file for all packages in the library.
* Results are not gzipped or minified.
* An ASCII character in UTF-8 is 8 bits or 1 byte.

Copy link
Contributor

github-actions bot commented Feb 7, 2024

🚀 Deployed on https://pr-2500--spectrum-css.netlify.app

@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from 676fef5 to 2c41fa6 Compare February 7, 2024 18:44
@castastrophe castastrophe added the wip This is a work in progress, don't judge. label Feb 7, 2024
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 7 times, most recently from 9548f0f to deeeac9 Compare February 12, 2024 20:13
@castastrophe castastrophe added the low priority Not a critical update or fix; can be deprioritized if necessary label Feb 12, 2024
@castastrophe castastrophe marked this pull request as draft February 12, 2024 22:14
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 2 times, most recently from 16f409e to c0f9463 Compare April 18, 2024 20:33
Copy link

changeset-bot bot commented Apr 18, 2024

⚠️ No Changeset found

Latest commit: fda9dab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 3 times, most recently from 098738b to dc002cf Compare April 29, 2024 14:50
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from dc002cf to ae16d2a Compare May 7, 2024 19:50
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from ae16d2a to 6cd570b Compare July 31, 2024 14:43
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 2 times, most recently from dd0694c to b565823 Compare August 13, 2024 14:19
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from b565823 to 20705b6 Compare August 22, 2024 01:17
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from 20705b6 to 9164f9f Compare August 29, 2024 18:39
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from 9164f9f to 9880b3a Compare September 18, 2024 12:26
@castastrophe castastrophe added the icebox Temporary archive; things in long-term consideration label Sep 19, 2024
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from cbbffd8 to e1a3792 Compare November 21, 2024 16:02
@castastrophe
Copy link
Collaborator Author

@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 13 times, most recently from 0fc864b to 38921ac Compare December 21, 2024 14:37
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 4 times, most recently from a2fe0a5 to e47aa37 Compare January 14, 2025 15:02
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from e47aa37 to 85f0636 Compare January 15, 2025 15:09
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch 6 times, most recently from bd5e7ec to 7991450 Compare February 5, 2025 21:05
@castastrophe castastrophe force-pushed the fix-tokens-windows-build branch from 7991450 to fda9dab Compare February 5, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
icebox Temporary archive; things in long-term consideration low priority Not a critical update or fix; can be deprioritized if necessary s1 skip_vrt Add to a PR to skip running VRT (but still pass the action) wip This is a work in progress, don't judge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant